package com.hayabusa.clients;/*
 * @author: Hayabusa
 * @date: 2022/1/27 17:06
 * @Description: 编写feign客户端
 * @Email:2682557218@qq.com
 */


import com.hayabusa.pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "product-service")
public interface ProductClient {
    @GetMapping(value = "/product/{id}")
    public Product findById(@PathVariable("id") Long id);
}
//局部配置日志级别
//@FeignClient(value = "product-service",configuration = DefaultFeignConfiguration.class)
//public interface ProductClient {
//    @GetMapping(value = "/product/{id}")
//    public Product findById(@PathVariable("id") Long id);
//}
